﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using YasharEl.Infrastructure.Core.EntityModel.Prototype;

namespace YasharEl.Infrastructure.Core.PersistenceModel.NHibernate.Prototype.Mappings
{
    public class PropertyInstanceInfinityStringValueEntityMap : ClassMap<PropertyInstanceInfinityStringValueEntity>
    {
        public PropertyInstanceInfinityStringValueEntityMap()
        {
            // the name of the table corresonding to the data type
            Table("PropertyInstanceStringValues");

            Id(e => e.Id)
                .Column("PropertyInstanceValueId")
                .GeneratedBy
                    .Identity();

            Map(e => e.RealValue)
                .Column("VALUE")
                .Nullable()
                .CustomType<string>()
                .CustomSqlType("CLOB");
        }
    }
}
